/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.uca.sisbec.decorators;

import org.displaytag.decorator.ColumnDecorator;

/**
 *
 * @author Juank
 */
public class PrestamoLibroDecorator implements ColumnDecorator{
    public String decorate(Object o){
        StringBuffer buffer = new StringBuffer(1000);
        return decorateColumn(buffer,(Integer)o);
    }
    
    private String decorateColumn(StringBuffer buff, Integer stg){
        String codigo = stg.toString();
        String link = "<a href=\"javascript:descartarLibro('" + codigo + "')\"><img src=\"./images/delete.png\" /></a>";
        buff.append(link);
        return buff.toString();
    }
}
